package fi.libros.web;

import org.springframework.stereotype.*;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.logging.Logger;


@Controller
public class HelloController {
	private static final Logger log = Logger.getLogger(HelloController.class.getName());

	@RequestMapping("/greet.do")
	public String setupForm(@RequestParam("id") int id, ModelMap model) {
		log.fine("setupForm: "+id);
		model.addAttribute("greeting", "hello, "+id);
		return "greeting";
	}

}
